package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import com.zrq.jwtdemo.${package.ModuleName}.mapper.${table.mapperName};

/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @author ${author}
* @since ${date}
*/
@Service
@AllArgsConstructor
@Validated
@Slf4j
@Transactional(rollbackFor = Exception.class)
<#if kotlin>
class ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public class ${table.serviceName} {

    private final ${table.mapperName} i${table.mapperName};

}
</#if>